home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tiger Disk 89
/
Tiger_Disk_089_20xx_Tiger-Crew-Disk_de_Side_B.d64
/
file-reader [tc]
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
1KB
|
38 lines
10 goto50
20 getxy$:ifxy$<>" "andxy$<>"e"thenreturn
30 ifxy$="e"then370
40 poke198,0:wait198,1:poke198,0:return
50 poke53280,8:poke53281,8:f$="":input"[147]filename ";f$:iff$=""thenend
60 l1$="":print"laufwerk mit "f$"[146] ";:inputl1$:ifl1$=""thenend
70 l1=val(l1$):ifl1<8orl1>9thenprint"[145][145][145]":goto60
80 f$=f$+"*":pa$="":input"p[146]rogramm oder s[146]equenz ";pa$:ifpa$=""thenend
90 ifpa$<>"p"andpa$<>"s"then80
100 ifpa$="s"then130
110 print"noter-file ?"
120 getnf$:ifnf$<>"j"andnf$<>"n"then120
130 print"[147] pause mit space! / abbruch mit 'e' ! ":print"";
140 open2,l1,2,f$+","+pa$+",r"
150 ifnf$="n"thenpa$="a"
160 ifpa$="p"orpa$="a"thenget#2,a$:get#2,a$
170 get#2,a$:ifa$=""thena$="@"
180 aa=asc(a$)
190 ifpa$="a"thenifaa<>13thenifaa<32then170
200 ifpa$="p"thenifaa>0thenifaa<32thenaa=aa+64
210 ifaa>96thenifaa<129thenaa=aa-32
220 ifaa>128thenifaa<193thenaa=aa-64
230 ifaa>192thenifaa<256thenaa=aa-128
240 rem --- nur fuer td-mag-texte!! ---
250 ifaa=95thenaa=96
260 rem --- normale programmzeile!! ---
270 a$=chr$(aa)
280 rem --- nur fuer td-mag-texte!! ---
290 ifaa=91thenpa=1:a$="oe"
300 ifaa=92thenpa=1:a$="ss"
310 ifaa=93thenpa=1:a$="ae"
320 ifaa=94thenpa=1:a$="ue"
330 ifpa=1thenifaa=32thenpa=0:gosub20:goto360
340 rem --- ab hier wieder normal!! ---
350 printa$;:gosub20
360 ifst<>64then170
370 close2:print:printchr$(14)"...das war's...":print" [212]igercrew ":end